using System;
using System.Collections.Generic;

namespace ConsoleApplication2.Models
{
    public partial class SM_Opportunity
    {
        public SM_Opportunity()
        {
            this.Ips = new List<Ip>();
        }

        public int ID { get; set; }
        public string Subject { get; set; }
        public string RecordType { get; set; }
        public string RecordID { get; set; }
        public Nullable<decimal> EstRevenues { get; set; }
        public Nullable<System.DateTime> EstClosureDate { get; set; }
        public Nullable<short> Currency { get; set; }
        public Nullable<double> Probability { get; set; }
        public string Rating { get; set; }
        public Nullable<int> Salesman { get; set; }
        public Nullable<int> CreatedBy { get; set; }
        public Nullable<System.DateTime> CreatedOn { get; set; }
        public string Status { get; set; }
        public string Notes { get; set; }
        public Nullable<int> RequiredFrom { get; set; }
        public virtual currency currency1 { get; set; }
        public virtual ICollection<Ip> Ips { get; set; }
        public virtual Name Name { get; set; }
    }
}
